<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title><%= htmlWebpackPlugin.options.title %></title>
  <script type="text/javascript">
      <%=compilation.assets[htmlWebpackPlugin.files.chunks.main.entry.substr(htmlWebpackPlugin.files.publicPath.length)].source() %>
  </script>
</head>
<body>
  <% for(var k in htmlWebpackPlugin.files.chunks){ %>
    <% if(k !== 'main'){ %>
    <script src="<%=htmlWebpackPlugin.files.chunks[k].entry %>"></script>
    <% } %>
  <% } %>
</body>
</html>